<?php
class NoticeModel extends Model{
	// insert
	public function add_notice($data)
	{  
        $data['timestamp'] = time();
		return M('notice' , '' , 'DB_MEETING') ->add($data);
	}

    //删除 
	public function to_del_notice($data)
	{
		return M('notice','','DB_MEETING')->where('notice_id='.$data['notice_id']) ->delete();
	}
}

?>